package com.hr.checkrepetition.model.vo;

import com.hr.checkrepetition.enums.ResponseStatusEnum;

public class ChannelRespVO extends ResponseVO {
    public static ResponseVO with(ResponseStatusEnum responseStatusEnum){
        return ResponseVO.with(responseStatusEnum.getCode(),responseStatusEnum.getMessage(),null);
    }

    public static ResponseVO with(ResponseStatusEnum responseStatusEnum, Object data){
        return ResponseVO.with(responseStatusEnum.getCode(),responseStatusEnum.getMessage(),data);
    }

    public static ResponseVO ok(Object data){
        return ResponseVO.with(ResponseStatusEnum.OK.getCode(), ResponseStatusEnum.OK.getMessage(),data);
    }

    public static ResponseVO ok(){
        return ResponseVO.with(ResponseStatusEnum.OK.getCode(), ResponseStatusEnum.OK.getMessage(),null);
    }

}
